﻿@using FCTC_Web.Models
@model FCTC_Web.Utilities.Page<Case>

@{
    ViewBag.Title = "Index";
    int current = 0;
    string styletr = "";
}

<h2>评估师案例维护列表</h2>

<p>
    @Html.ActionLink("新建", "Create")
</p>
<style>
    table tr th
    {
        padding: 0px 13px;
        text-align: center;
        line-height: 30px;
    }
    table tr td
    {
        text-align: center;
    }
</style>
<table width="100%">
    <tr>
        <th>
           评估师
        </th>
        <th>
            案例标题
        </th>
        <th>
            案例内容
        </th>
        <th>
            案例细节
        </th>
        <th>
            编辑时间
        </th>
        <th>
            编辑人
        </th>
        <th>
            Sequense
        </th>
        <th></th>
    </tr>

 @foreach (var item in Model.CurrentRecords)
    {
        if (current % 2 == 1) { styletr = "background-color:#f6fdfd"; }
        else if (current % 2 == 0) { styletr = ""; }
        <tr style="@styletr">
            <td>
            @Html.DisplayFor(modelItem => item.Estimator.Personal.FullName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CaseTitle)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CaseContent)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CaseDetails)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UpdateTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UpdatedUser)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
    </tr>
        current++;
}

</table>
@Html.Pager(Model, "/Estimator/Index")
